using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace HardcoreGame.Content.Items.Ammo.SlingBullets
{
    public class HellstoneSlingBullet : ModItem
    {
        public override void SetStaticDefaults()
        {
            Item.ResearchUnlockCount = 99;
        }
        public override void SetDefaults()
        {
            Item.damage = 15;
            Item.DamageType = DamageClass.Ranged;
            Item.consumable = true;
            Item.knockBack = 2.5f;
            Item.shootSpeed = 5.25f;
            Item.ammo = ModContent.ItemType<StoneSlingBullet>();
            Item.shoot = ModContent.ProjectileType<Projectiles.Ammo.HellstoneSlingBullet>();
            Item.value = 20;
            Item.rare = ItemRarityID.Green;
            Item.maxStack = Item.CommonMaxStack;
            Item.height = 8;
            Item.width = 8;
        }
        public override Color? GetAlpha(Color lightColor)
        {
            return Color.White;
        }

        public override void AddRecipes()
        {
            Recipe recipe = CreateRecipe(50);
            recipe.AddIngredient(ItemID.HellstoneBar, 1);
            recipe.AddTile(TileID.WorkBenches);
            recipe.Register();
        }
    }
}
